package com.team.mp.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色权限表(SysRolePermission)表实体类
 *
 * @author makejava
 * @since 2023-03-27 16:34:07
 */
@Data
@TableName("sys_role_permission")
public class SysRolePermission extends Model<SysRolePermission> {
    //id，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //角色id
    private Integer roleId;
    //权限id
    private Integer permId;
    public SysRolePermission(Integer roleId, Integer permId) {
        this.roleId = roleId;
        this.permId = permId;
    }
}

